﻿@{
    bool isUserMessage = true;
    var systemName = WYFast.Web.Util.UtilConfig.GetValue("SystemName");
    var userId = WYFast.Web.Util.UtilConfig.GetProvider().UserId;
    var userName = WYFast.Web.Util.UtilConfig.GetProvider().UserName;
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>@systemName</title>
    <link rel="icon" href="/Content/images/favicon.ico">
    <script src="~/Content/scripts/jquery/jquery-1.10.2.min.js"></script>
    <script src="~/Content/scripts/plugins/cookie/jquery.cookie.js"></script>
    <link href="~/Content/styles/font-awesome.min.css" rel="stylesheet" />
    <link href="~/Content/scripts/bootstrap/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/styles/learun-ui.css" rel="stylesheet" />
    @*@System.Web.Optimization.Scripts.Render("~/Content/scripts/utils/js")*@

    <script src="/Content/scripts/utils/learun-ui.js"></script>
    <script src="~/Content/scripts/utils/learun-form.js"></script>
    <script src="~/Content/scripts/plugins/dialog/dialog.js"></script>
    <script src="~/Content/scripts/utils/learun-clientdata.js"></script>
    <link href="/Content/styles/font-awesome.min.css" rel="stylesheet" />
    <script src="/Content/scripts/bootstrap/bootstrap.min.js"></script>

    <script src="/Content/adminPretty/index.js"></script>
    <link href="/Content/adminPretty/css/index.css" rel="stylesheet" />
    @if (isUserMessage)
    {
        <!--即时通信start-->
        <script src="~/Content/scripts/plugins/signalr/jquery.signalR-2.2.0.min.js"></script>
        <script src="@WYFast.Web.Util.UtilConfig.GetValue("SignalRUrl")/hubs"></script>
        <link href="~/Content/styles/learun-im.css" rel="stylesheet" />
        <script src="~/Content/scripts/utils/learun-im.js"></script>
        <!--即时通信end-->
    }
    <script>
        var contentPath ='/Admin';
        $(function () {
            if ('@isUserMessage' == 'True') {
                IMInit({
                    url: "@WYFast.Web.Util.UtilConfig.GetValue("SignalRUrl")",
                    userId: "@WYFast.Web.Util.UtilConfig.GetProvider().UserId",
                    userName: "@WYFast.Web.Util.UtilConfig.GetProvider().UserName"
                });
            } else {
                $('#btn_message').remove();
                $('.message-wrap').remove();
                $(".message-window").remove();
            }
        });
    </script>
</head>
<body style="overflow: hidden;">
    <div id="ajax-loader" style="cursor: progress; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: #fff; z-index: 10000; overflow: hidden;">
        <img src="/Content/images/ajax-loader.gif" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto;" />
    </div>
    <div class="lea-Head">
        <div class="logo">
            <img src="/Content/adminPretty/images/new.logo.png" />
        </div>
        <div class="left-bar" id="left-bar">
            <ul class="menu" id="top-menu"></ul>
        </div>
        <div class="right-bar">
            <ul>
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="/Content/images/head/user2-160x160.jpg"
                             onerror="javascript: this.src = '../../Content/images/head/user2-160x160.jpg'" class="user-image" alt="User Image">
                        <span class="hidden-xs">@userName</span>
                    </a>
                    <ul class="dropdown-menu pull-right">
                        <li><a id="UserSetting"><i class="fa fa-user"></i>个人信息</a></li>
                        <li><a href="javascript:void();"><i class="fa fa-trash-o"></i>清空缓存</a></li>
                        <li class="divider"></li>
                        <li><a onclick="$.learunindex.indexOut()"><i class="ace-icon fa fa-power-off"></i>安全退出</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <div class="lea-tabs">
        <div class="menuTabs">
            <div class="page-tabs-content">
                <a href="javascript:;" class="menuTab active" data-id="/Admin/Main/AdminPrettyDesktop"><i class="fa fa-home"></i>欢迎首页</a>
            </div>
        </div>
        <div class="tabs-right-tool">
            <button class="roll-nav tabLeft">
                <i class="fa fa fa-chevron-left"></i>
            </button>
            <button class="roll-nav tabRight">
                <i class="fa fa fa-chevron-right" style="margin-left: 3px;"></i>
            </button>
            <button class="roll-nav fullscreen">
                <i class="fa fa-arrows-alt"></i>
            </button>
            <div class="dropdown">
                <button class="roll-nav dropdown-toggle" data-toggle="dropdown">
                    <i class="fa fa-gear "></i>
                </button>
                <ul class="dropdown-menu dropdown-menu-right" style="margin-top:40px">
                    <li><a class="tabReload" href="javascript:;">刷新当前</a></li>
                    <li><a class="tabCloseCurrent" href="javascript:;">关闭当前</a></li>
                    <li><a class="tabCloseAll" href="javascript:;">全部关闭</a></li>
                    <li><a class="tabCloseOther" href="javascript:;">除此之外全部关闭</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div id="mainContent" class="lea-content">
        <iframe class="LRADMS_iframe" width="100%" height="100%" src="/Admin/Main/AdminPrettyDesktop" frameborder="0" data-id="/Admin/Main/AdminPrettyDesktop"></iframe>
    </div>
    <div class="footer">
        <div style="float: left; width: 30%;">
            &nbsp;技术支持：<a href="#" target="_blank" style="color: white;">@systemName</a>
        </div>
        <div style="float: left; width: 40%; text-align: center;">
            Copyright © 2013 - 2016 By 北京科技公司
        </div>
        <div style="float: left; width: 30%; text-align: right;">
            <i id="btn_message" class="fa fa-comments" title="消息通知" style="width: 30px; font-size: 22px; vertical-align: middle; cursor: pointer;margin-top:-1px;margin-right:5px;"></i>
        </div>
    </div>


    <div id="loading_background" class="loading_background" style="display: none;"></div>
    <div id="loading_manage">
        正在拼了命为您加载…
    </div>
    <!--聊天窗口start-->
    <div class="message-wrap">
        <div class="message-content">
            <div class="message-header">
                企业内部微信
                <div class="message-close">
                    <a href="javascript:;">×</a>
                </div>
            </div>
            <div class="message-body">
                <div class="message-body-search">
                    <input type="text" class="search-text" placeholder="搜索：同事名称、讨论组名称">
                    <i class="fa fa-search"></i>
                </div>
                <div class="message-body-container">
                    <div class="message-nav" style="display: block;">
                        <ul>
                            <li id="nav-contact-tab" class="active">
                                <a title="联系人"><i class="fa fa-user"></i></a>
                            </li>
                            <li id="nav-group-tab">
                                <a title="讨论组"><i class="fa fa-users" style="font-size: 20px;"></i></a>
                            </li>
                            <li id="nav-last-tab">
                                <a title="最近回话"><i class="fa fa-comment"></i><span class="message-count">2</span></a>
                            </li>
                        </ul>
                    </div>
                    <div class="message-group" style="height: 335px; overflow: auto; overflow-x: hidden;">
                        <ul id="message-contact-list"></ul>
                        <ul id="message-group-list" class="message-chatlist" style="display: none;">
                            <div style="color: red;">目前不支持</div>
                        </ul>
                        <ul id="message-last-list" class="message-chatlist" style="display: none;"></ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="message-window">
        <div class="message-window-header">
            <span class="text">与 XXX 聊天中</span>
            <div class="close">
                <a href="javascript:;">×</a>
            </div>
        </div>
        <div class="message-window-chat" style="overflow: auto; height: 260px;">
            <div class="message-window-content" style="padding: 15px; height: auto; overflow: hidden;">
            </div>
        </div>
        <div class="message-window-tool">
            <a class="message-window-tool-seechatlog"><i class="fa fa-clock-o"></i>沟通记录</a>
        </div>
        <div class="message-window-send">
            <textarea autofocus placeholder="按回车发送消息,shift+回车换行"></textarea>
        </div>
    </div>
    <!--聊天窗口end-->
</body>
</html>
